import request from '@/utils/request'

// 查询储存商品列表
export function listOutbound(query) {
    return request({
        url: '/customer/outbound/list',
        method: 'get',
        params: query
    })
}

// 查询储存商品详细
export function getOutbound(id) {
    return request({
        url: '/customer/outbound/' + id,
        method: 'get'
    })
}

// 新增储存商品
export function addOutbound(data) {
    return request({
        url: '/customer/outbound',
        method: 'post',
        data: data
    })
}

// 修改储存商品
export function updateOutbound(data) {
    return request({
        url: '/customer/outbound',
        method: 'put',
        data: data
    })
}

// 删除储存商品
export function delOutbound(query) {
    return request({
        url: '/customer/outbound/remove',
        method: 'get',
        params: query
    })
}
